var express = require('express');
var router = express.Router();
var jwt = require('jsonwebtoken');
var config = require('./../config/config')
var expressJwt = require('express-jwt')
var util = require("./../util/util");
var unless = require('express-unless')

/* GET home page. */
router.get('/', function(req, res, next) {
  res.redirect('/index');
});

router.get('/index', function(req, res, next) {
    res.render('index', { title: 'index' });
});

router.get('/didi', function(req, res, next) {
    // console.log(req.query.token);
    // console.log(req.query.name);
    res.render('didi', { token: req.query.token,name:req.query.name });
});

router.get('/skirt', function(req, res, next) {
    // console.log(req.query.token);
    // console.log(req.query.name);
    res.render('skirt', { token: req.query.token,name:req.query.name });
});

router.get('/shoes', function(req, res, next) {
    // console.log(req.query.token);
    // console.log(req.query.name);

    res.render('shoes', { token: req.query.token,name:req.query.name });
});

router.get('/myfollow', function(req, res, next) {
    // console.log(req.query.token);
    console.log(req.headers.authorization);
    res.render('myfollow');
});



module.exports = router;
